import { SDKSystem } from "../../core/system/SDKSystem";


export class SwanSystem extends SDKSystem{
    vibrateShort() {
        this.sdk.vibrateShort()
    }



    showToast(title: string) {
        this.sdk.showToast({ title: title })
    }
    //展示网络图片
    previewImage(imgUrl: string) {
        this.sdk.previewImage({
            current: imgUrl, // 当前显示图片的http链接
            urls: [imgUrl] // 需要预览的图片http链接列表
        })
    }

    navigateToMiniProgram(appID: string) {
        this.sdk.navigateToMiniProgram({
            appKey: appID,
            success: () => {
                console.log(' jump ok')
            },
            fail: () => {
                console.log(' jump fail')
            }
        })
    }
}